package miracle.joker.design.strategy;

public class StrategyDemo {
    public static void main(String[] args) {
        Context context = new Context();

        Strategy strategyA = new StrategyA();
        context.setStrategy(strategyA);
        context.executeAlgorithm();

        Strategy strategyB = new StrategyB();
        context.setStrategy(strategyB);
        context.executeAlgorithm();

        Strategy strategyC = new StrategyC();
        context.setStrategy(strategyC);
        context.executeAlgorithm();
    }
}
